package com.bawei.movie.model

import com.bawei.movie.api.MovieServerApi
import com.bawei.movie.entity.MovieTypeEntity
import com.bawei.network.BaseResponse
import javax.inject.Inject

/**
 * Author: Jason Zhang
 * Date: 2025/2/8
 * Desc:
 */
class MovieRepository @Inject constructor(private val apiServer: MovieServerApi){

    /**
     * 获取一级分类
     */
    suspend fun getMutilType(): BaseResponse<List<MovieTypeEntity>>{
        return apiServer.getMutilType()
    }

    /**
     * 获取二级分类
     */
    suspend fun getMutilTypeById(pid: Int): BaseResponse<List<MovieTypeEntity>>{
        return apiServer.getMutilTypeByPid(pid)
    }


}